import { useDict } from './dict'
import { store } from '@common'
export const initStore = async () => {
  const dict = useDict()
  const requesList = Object.keys(store.dict.actions).filter((e) => e !== 'getDictByType')
  await Promise.all(requesList.map((key) => dict[key]()))
}
